let username = "JackOfAllTrades";
let userCheck = /[[A-Za-z]{2}|[A-Za-z]+\d*$]/; // 修改这一行
let result = userCheck.test(username);